﻿<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>table 组件综合演示 - Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        .FormSubmit {
            position: absolute;
            bottom: 20px;
            right: 20px;
        }
    </style>
    @RenderSection("header", required: false)
    @* <script src="~/utils/cache.js"></script> *@
    @* <script src="~/utils/permission.js"></script> *@
</head>

<body>
    @RenderBody()
  
    <script>
       
        var G_LayuiOpenTypeIndex = "";//打开的弹框

        var GuidEmpty = "00000000-0000-0000-0000-000000000000"
           //权限UI渲染
        function permissionUI(){
                
             // console.log($(this).attr('lay-permission')); // 打印自定义属性的值
            $('[lay-permission]').each(function() {
                // 对具有特定自定义属性值的元素执行操作  
                var key=$(this).attr('lay-permission')
                console.log("lay-permission",key)
                if(!IsPermission(key)){
                    $(this).hide();
                     console.log(key); // 打印自定义属性的值
                }  
            });
        }

        layui.use([], function () {
            console.log("layui")
            //setTimeout(function(){ //延迟 是按钮在table里 等待table渲染
            //    permissionUI();
            //},50)
             
        })
     
        
        

        function GetViewHtml(url, viewName,data, callBack) {
            $.ajax({
                type: 'Post',
                url: url,//发送请求
                data: { viewName: viewName, model:data },
                success: function (result) {
                    //console.log(result)
                    callBack(result)
                }
                // , error: function (err) {
                //     toast.error({
                //         message: err.status + ":" + err.statusText,
                //     });
                // }
            });
        }
    
        console.log("---2--2")
    </script>


  
       
   


   @RenderSection("footer", required: false)
</body>

</html>